#include "StdAfx.h"
#include "EncodingUtility.h"
#include <boost/locale/encoding.hpp>

std::string EncodingUtility::currentSystemStringEncoding = "GB2312";
EncodingUtility::EncodingUtility(void) 
{
}


EncodingUtility::~EncodingUtility(void)
{
}


std::string EncodingUtility::getCurrentSystemStringEncoding()
{
	return currentSystemStringEncoding;
}

std::string EncodingUtility::convertEncoding(std::string const& text, std::string const& to_encoding, std::string const& from_encoding)
{
	return boost::locale::conv::between(text,to_encoding,from_encoding);
}